package com.ctrl.riveradministrator.mvp.model;

import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.annotations.SerializedName;

/**
 * @author zzh
 */
public class Lat2Lng implements Parcelable {
    /**
     * 纬度 90
     */
    @SerializedName(value = "lat", alternate = {"latitude"})
    public double latitude;
    /**
     * 经度 360
     */
    @SerializedName(value = "lng", alternate = {"longitude"})
    public double longitude;
    private String remark;
    private String location;

    private int width;

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public double getLatitude() {
        return latitude;
    }

    public void setLatitude(double latitude) {
        this.latitude = latitude;
    }

    public double getLongitude() {
        return longitude;
    }

    public void setLongitude(double longitude) {
        this.longitude = longitude;
    }

    public Lat2Lng() {
    }

    public int getWidth() {
        return width;
    }

    public void setWidth(int width) {
        this.width = width;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeDouble(this.latitude);
        dest.writeDouble(this.longitude);
        dest.writeString(this.remark);
    }

    protected Lat2Lng(Parcel in) {
        this.latitude = in.readDouble();
        this.longitude = in.readDouble();
        this.remark = in.readString();
    }

    public static final Creator<Lat2Lng> CREATOR = new Creator<Lat2Lng>() {
        @Override
        public Lat2Lng createFromParcel(Parcel source) {
            return new Lat2Lng(source);
        }

        @Override
        public Lat2Lng[] newArray(int size) {
            return new Lat2Lng[size];
        }
    };
}
